Do not abort the poll loop if some confirm request attempts fail, which
might happen when the device starts rolling back its configuration.
Before that fix, the rollback information dialog offering an unchecked
apply was not reliably presented in such situations.
Signed-off-by: Jo-Philipp Wich <[email protected]>
(cherry picked from commit
b6797821b86678d8dd604ce4805691784e6dc3ce)
method: 'post',
timeout: L.env.apply_timeout * 1000,
query: { sid: L.env.sessionid, token: L.env.token }
- }).then(call);
+ }).then(call, call.bind(null, { status: 0 }, null, 0));
}, delay);
};